import api  from './api'
import http from './http'

export function carousel(data){
    return http({
        method:'GET',
        url:api.carousel,
        params:data
    })
}
export function goods(data){
    return http({
        method:'GET',
        url:api.goods,
        params:data
    })
}
export function login(data){
    return http({
        method:'POST',
        url:api.login,
        data
    })
}
export function register(data){
    return http({
        method:'POST',
        url:api.register,
        data
    })
}
export function getGoods(id){
    return http({
        method:'GET',
        url:`${api.goods}/${id}`,
    })
}
